package Com.amit.corejava;

class Anil
{
	int speed=40;
	Anil()
	{
		System.out.println("Anil default constructor is called");
	}
}

public class Lab42 extends Anil {
	int speed=60;
	
	Lab42(int speed)
	{
		this.speed=speed;
		
		System.out.println(speed);
	}
	
	public static void main(String[] args) {
		
		Lab42 l=new Lab42(10);
		
	}

}
